x86:xsaveopt: Enable xsaveopt feature in Xen and guest
authorKeir Fraser <keir@xen.org>
Fri, 17 Dec 2010 09:25:00 +0000 (09:25 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 17 Dec 2010 09:25:00 +0000 (09:25 +0000)
commitee8ac49677904c14b69b7fe65d79b57af964edc5
tree4f2cb3e3431c568770c57b27dff78d67ad03a2e6
parent5ec363dfe9654d3be6d3e9a0105ebe53577913fe
x86:xsaveopt: Enable xsaveopt feature in Xen and guest

This patch uses "xsaveopt" instead of "xsave" if the feature is
supported in hardware to optimize task switch performance in Xen. It
also exposes the feature to guest VMs.

Signed-off-by: Zhang Fengzhe <fengzhe.zhang@intel.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/i387.c
xen/include/asm-x86/i387.h